package com.yu.mall.dto.order;

import com.yu.mall.dto.BaseDTO;
import com.yu.mall.entity.OrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel
public class OrderDTO extends FreightDTO {

    @ApiModelProperty(value="地址id",required = true,example = "1")
    private String addressId;

    @ApiModelProperty(value="姓名",required = true)
    private String name;

    @ApiModelProperty(value="手机号",required = true)
    private String phone;

    @ApiModelProperty(value="省名称",required = true)
    private String provinceName;

    @ApiModelProperty(value="市名称",required = true)
    private String cityName;

    @ApiModelProperty(value="区名称",required = true)
    private String countyName;

    @ApiModelProperty(value="第四级名称",required = true)
    private String townName;

    @ApiModelProperty(value="详情地址",required = true)
    private String address;

    @ApiModelProperty(value="支付方式（1余额 2，微信）",required = true)
    private String payType;

    @ApiModelProperty(value="订单总金额（不包含运费）",required = true)
    private BigDecimal orderPrice;

    @ApiModelProperty(value="运费",required = true)
    private BigDecimal freight;

    @ApiModelProperty(value="订单商品信息",required = true)
    private List<OrderItemDTO> orderItems;

    @ApiModelProperty(value="开票方式(2为集中开票，4 订单完成后开票)",hidden = true)
    private String invoiceState = "3";

    @ApiModelProperty(value="票类型（2增值税专用发票；3 电子票） 默认电子票",required = true)
    private String invoiceType;

    @ApiModelProperty(value="发票类型（4：个人，5：单位） 默认个人",required = true)
    private String selectedInvoiceTitle;

    @ApiModelProperty(value="票内容（1:明细，100：大类 ）默认明细",required = true)
    private String invoiceContent;

    @ApiModelProperty(value="收票人姓名 ",required = true)
    private String invoiceName;

    @ApiModelProperty(value="收票人电话")
    private String invoicePhone ;

}
